package com.java2020.online_mall.service;

import com.java2020.online_mall.dao.UserDao;
import com.java2020.online_mall.dao.UserDaoImpl;
import com.java2020.online_mall.model.User;

import java.util.List;

/**
 * @PackgeName: com.java2020.online_mall.service
 * @Author: MNHK
 * Date: 2020/5/3 8:03
 * @Version:1.8
 */

public class UserServiceImpl implements UserService{
    private UserDao userDao = new UserDaoImpl();

    @Override
    public List<User> getSearchUser(String param) {
        return userDao.getSearchUser(param);
    }

    @Override
    public List<User> allUser() {
        return userDao.allUser();
    }

    @Override
    public int deleteUser(String id) {
        return userDao.deleteUser(id);
    }
}
